#include<stdio.h>
main( )
{ 		 
	int n,spoint,i,j,max,pos;
	int find=0;
	int arry[2][6];
	for(i=0;i<2;++i)
	{ 		 
			for(j=0;j<6;j++)  //1
			{ 		 
				scanf("%d",&arry[i][j]);	
			}
	}
	for(i=0;i<2;++i)
	{ 		 
		max=arry[i][0];
		for(j=0;j<6;++j)  //1
		{ 		 
			if(max<arry[i][j])  //1
			{ 		 
				max=arry[i][j];	
				pos = j;
			}
		}
		if(arry[(i+1)%2][pos]>max)  //1
		{ 		 
			printf("%d\n",max);   //1
			find = 1;
		}
	}
	if(!find)
		printf("no saddle point\n");
} 		 
